//
//  LHDetailModel.m
//  Knight_Tour
//
//  Created by dlios on 15-5-23.
//  Copyright (c) 2015年 TouchOne. All rights reserved.
//

#import "LHDetailModel.h"

@implementation LHDetailModel
- (void)dealloc
{
    [_titleName release];
    [_desc release];
    [super dealloc];
}

- (instancetype)initWithDic:(NSDictionary *)dic
{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.desc forKey:@"desc"];
    [aCoder encodeObject:self.titleName forKey:@"titleName"];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self) {
        self.titleName = [aDecoder decodeObjectForKey:@"titleName"];
        self.desc = [aDecoder decodeObjectForKey:@"desc"];
    }
    return self;
}
@end
